package ioc.test;


import ioc.action.LoginAction;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Main {

    public static void main(String[] args) {

        ApplicationContext ac = new FileSystemXmlApplicationContext("src/conf/spring-config.xml");
        ac = new ClassPathXmlApplicationContext("conf/spring-config.xml");

        LoginAction la = (LoginAction) ac.getBean("action");
        la = ac.getBean(LoginAction.class);
        la.execute();

    }


}
